import { TOKEN_KEY } from '@/constants'
import Cookie from  'js-cookie'

export const getLocationToken = () => {
  // return localStorage.getItem(TOKEN_KEY)
  return Cookie.get(TOKEN_KEY)
}

export const setLocationToken = (token: string) => {
  // localStorage.setItem(TOKEN_KEY, token)
  return Cookie.set(TOKEN_KEY, token)
}

export const removeLocationToken = () => {
  // localStorage.removeItem(TOKEN_KEY)
  return Cookie.remove(TOKEN_KEY)
}
